﻿using System.ComponentModel;

namespace CommonEngine.Resource
{
    /// <summary>
    /// 条件操作类型
    /// </summary>
    public enum ConditionOperationType : int
    {
        [Description("集合")]
        Collection = 0,
        [Description("范围")]
        Scope = 1
    }

    /// <summary>
    /// 条件值的类型
    /// </summary>
    public enum ConditionValueType : int
    {
        [Description("GUID")]
        Guid = 0,
        [Description("String")]
        String = 1,
        [Description("时间")]
        DateTime = 2,
        [Description("数字")]
        Integer = 3
    }

    /// <summary>
    /// 主体类型代码(默认U用户)
    /// </summary>
    public enum PrincipalTypeCode : int
    {
        [Description("用户")]
        U = 1,
        [Description("部门")]
        D = 2,
        [Description("公司")]
        C = 3,
        [Description("岗位")]
        P = 4
    }
}
